package net.sxnic.jhitem.itemannex.action;

import java.util.List;

import net.sxinfo.core.dao.Page;
import net.sxnic.item.ItemActionSupport;
import net.sxnic.item.duiying.DuiyingManager;
import net.sxnic.item.mdata.Mdata;
import net.sxnic.item.mdata.MdataManager;
import net.sxnic.jhitem.itemannex.ItemAnnex;
import net.sxnic.jhitem.itemannex.ItemAnnexManager;
import net.sxnic.jhitem.itemoperation.ItemOperationManager;
import net.sxnic.jhitem.itempeople.ItemPeopleManager;
import net.sxnic.jhitem.itemssmb.ItemSsmb;
import net.sxnic.jhitem.itemssmb.ItemSsmbManager;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description:  [一句话描述该类的功能]
 * @Author [姓名] [联系方式]
 * @CreateDate:
 * @UpdateDate:   
 * @Version 1.0
 */
 public abstract class ItemAnnexAction extends ItemActionSupport{

	private static final long serialVersionUID = 1L;

	protected ItemAnnex itemAnnex;
	//相关附件
    protected List<ItemAnnex> annex001List;
    //报告正文
    protected List<ItemAnnex> annex002List;
	protected String appYear;

	protected String catalogAlias;

	protected String catalogCode;
	
	protected String jspYear;
	
	protected String jspCatalog;
	
	protected Mdata mdata;
	
	@Autowired
    protected MdataManager mdataManager;
	@Autowired
	protected ItemOperationManager operationManager;
	@Autowired
	protected DuiyingManager dyManager;
	@Autowired
    protected ItemAnnexManager itemAnnexManager;
	@Autowired
    protected MdataManager mdManager;
	
	protected void setJspPath(String baseInfoId){
		mdata = mdataManager.get(baseInfoId);
    	appYear = mdata.getAppYear();
		catalogAlias = mdata.getCatalog1();
		catalogCode = mdata.getCatalog2();
		jspYear= dyManager.findJspYear(appYear, catalogAlias, catalogCode);
		//${jspYear}/${catalogAlias}/${catalogCode}/edit.jsp
		jspCatalog = operationManager.findJspCatalog(mdata.getCatalog1(), mdata.getCatalog2(), mdata.getSoperCode());
	
	}
	
	public ItemAnnex getItemAnnex() {
		return itemAnnex;
	}

	public void setItemAnnex(ItemAnnex itemAnnex) {
		this.itemAnnex = itemAnnex;
	}

	public String getAppYear() {
		return appYear;
	}

	public void setAppYear(String appYear) {
		this.appYear = appYear;
	}

	public String getCatalogAlias() {
		return catalogAlias;
	}

	public void setCatalogAlias(String catalogAlias) {
		this.catalogAlias = catalogAlias;
	}

	public String getCatalogCode() {
		return catalogCode;
	}

	public void setCatalogCode(String catalogCode) {
		this.catalogCode = catalogCode;
	}

	public String getJspYear() {
		return jspYear;
	}

	public void setJspYear(String jspYear) {
		this.jspYear = jspYear;
	}

	public String getJspCatalog() {
		return jspCatalog;
	}

	public void setJspCatalog(String jspCatalog) {
		this.jspCatalog = jspCatalog;
	}

	public Mdata getMdata() {
		return mdata;
	}

	public void setMdata(Mdata mdata) {
		this.mdata = mdata;
	}

	public List<ItemAnnex> getAnnex001List() {
		return annex001List;
	}

	public void setAnnex001List(List<ItemAnnex> annex001List) {
		this.annex001List = annex001List;
	}

	public List<ItemAnnex> getAnnex002List() {
		return annex002List;
	}

	public void setAnnex002List(List<ItemAnnex> annex002List) {
		this.annex002List = annex002List;
	}
 

}
